<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改密码</title>
</head>
<link href="<?php echo $this->baseUrl;?>/admincss/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
/**
 * 两次密码确认
 */
function doSubmit() {
var password = $('password');
var password2 = $('password2');
if (password.value=='') {
	password.focus();
	alert("请输入密码");
	return false;
}
if (password2.value=='') {
	password2.focus();
	alert("请输入确认密码");
	return false;
}

if (password.value != password2.value) {
	alert("两次密码不一致");
	return false;
}
return true;
}
$ = function (o){return document.getElementById(o);}
</script>
<body>
<form method="post" action="<?php echo $this->url($this->baseUrl, 'privilege', 'adminpassword');?>" >
<table class="tableA"  width="24%" border="1" align="center">
  <tr>
    <td colspan="2" align="center"><strong>修改用户密码</strong></td>
  </tr>
  <tr>
    <td width="9%" class="tdL">用户帐号</td>
    <td width="91%"><input name="id" type="hidden" id="id" value="<?php echo $this->content['id'];?>"/><?php echo $this->content['username'];?></td>
  </tr>
  <tr>
    <td class="tdL">新密码</td>
    <td><input name="password" type="password" id="password" size="20"/></td>
  </tr>
  <tr>
    <td nowrap="nowrap" class="tdL">确认新密码</td>
    <td><input name="password2" type="password" id="password2" size="20"/></td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="tdI"><input class="btn_submit"   type="submit" class="btn_std" name="Submit" value="确认" onclick='javascript:return doSubmit();'/> &nbsp;
      <input class="btn_std"  type="button" class="btn_std" name="Submit2" value="返回" onclick='javascript:history.back(-1);'/></td>
  </tr>
</table>
</form>
</body>
</html>
